
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>用户主页</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="fly,layui,前端社区">
  <meta name="description" content="论坛是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
  <link rel="stylesheet" href="../../static/bbs/res/layui/css/layui.css">
  <link rel="stylesheet" href="../../static/bbs/res/css/global.css">
</head>
<body style="margin-top: 65px;">

{% include '/bbs/common/header.html' %}

{% if user %}
<div class="fly-home fly-panel" style="background-image: url();">
  <img src="{{user.avator}}" alt="作者">
  <i class="iconfont icon-renzheng" title="论坛认证"></i>
  <h1>
    {{user.nickname}}
    <i class="iconfont icon-nan"></i>
    <!-- <i class="iconfont icon-nv"></i>  -->
    <!--i class="layui-badge fly-badge-vip">VIP3</i-->
    <!--
    <span style="color:#c00;">（管理员）</span>
    <span style="color:#5FB878;">（社区之光）</span>
    <span>（该号已被封）</span>
    -->
  </h1>
{% if user.qq %}
  <p style="padding: 10px 0; color: #5FB878;">QQ:{{user.qq}}</p>
{% endif %}

  <p class="fly-home-info">
    <i class="iconfont icon-jifen" title="金币"></i><span style="color: #FF7200;">{{user.coin}} 金币</span>
    <i class="iconfont icon-shijian"></i><span>上次活动 {{user.lastsign}}</span>
    <i class="iconfont icon-yulan"></i><span>权限 {{user.level}}</span>
  </p>

  <p class="fly-home-sign">{{user.sign}}</p>

  <div class="fly-sns" data-user="">
    <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
    <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
  </div>

</div>



<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title">作者 最近的主题</h3>
        <ul class="jie-row">
        	{% for u in articleList %}
          <li>
            <span class="fly-jing">精</span>
            <a href="/bbs/post/{{u.id}}" class="jie-title"> {{u.title}}</a>
            <i>刚刚</i>
            <em class="layui-hide-xs">1136阅/27答</em>
          </li>
          {% endfor %}
          <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div> -->
        </ul>
      </div>
    </div>
    
    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title">作者 最近的回答</h3>
        <ul class="home-jieda">
        	
        {% if viewObject %}
        <span>1分钟前</span>
        		{% for u in viewObject %}
        		<li>
		          <p>
		          <span>1分钟前</span>
		          在<a href="/bbs/post/{{u.B.id}}" target="_blank">{{u.B.title}}</a>中回答：
 
		          </p>
		          <div class="home-dacontent">
		           		{{u.A.content|safe}}
		          </div>
        		</li>
        		{% endfor %}
         {% else %}
        
        		<div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div>
        {% endif %}
        </ul>
      </div>
    </div>
  </div>
</div>
{% endif %}


{% include '/bbs/common/footer.html' %}

<script src="../../static/bbs/res/layui/layui.js"></script>
<script>
layui.cache.page = 'user';
layui.cache.user = {
  username: '游客'
  ,uid: -1
  ,avatar: '../../static/bbs/res/images/avatar/00.jpg'
  ,experience: 83
  ,sex: '男'
};
layui.config({
  version: "3.0.0"
  ,base: '../../static/bbs/res/mods/'
}).extend({
  fly: 'index'
}).use('fly');
</script>

</body>
</html>